package com.atguigu.day05.test;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/4 13:01
 * @注释 用char[]存储26个小写字母,展示时既有小写也有大写
 */
public class ArrayTest04 {
    public static void main(String[] args) {
        char[] letter = new char[26];

        for (char ch = 'a'; ch <= 'z'; ch++) {
            System.out.println(ch + "--->" + (char)(ch - 32));
            letter[ch - 97] = ch;
            /*char c = (char)(ch - 32);
            System.out.println(c);*/
        }
    }

}
